
        <?php
        include_once 'mp3.class.php';
        
        $mesMp3[] = new mp3("3 Y'a de la joie", "Charles Trenet", 3.09);
        $mesMp3[] = new mp3("2 La pluie", "Claude Nougaro", 3.54);
        $mesMp3[] = new mp3("1 Gaston y'a le telefon qui son", "Nino Ferrer", 2.97);
        
        usort($mesMp3, array("Mp3", "compareToDuree"));
        
        foreach($mesMp3 as $unMp3){
            echo $unMp3."\n";
        }
        
        
        ?>
